package net.tw.transactional2.service.impl;

import net.tw.transactional2.dao.PersonDao;
import net.tw.transactional2.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PersonServiceImpl implements PersonService {

    @Autowired
    PersonDao personDao;

    @Override
    public String setName() {
        personDao.insertName();
        return "success";
    }
}
